package com.alstudio.utils.account;

import com.alstudio.utils.formater.ALEmailFormater;

public class ALAccount {

	private String mUserName;
	private String mPassword;
	private boolean isLogoff = true;
	private boolean isLoginWithId = false;
	private String token;

	private String customName;
	private int mLoginType;

	
	/**
	 * @param customName the customName to set
	 */
	public void setCustomName(String customName) {
		this.customName = customName;
	}
	
	/**
	 * @return the customName
	 */
	public String getCustomName() {
		return customName;
	}
	
	public void setUserName(String user) {
		this.mUserName = user;
		isLoginWithId = !ALEmailFormater.isEmail(user);
	}

	public String getUserName() {
		return this.mUserName;
	}

	public void setPassWord(String pwd) {
		this.mPassword = pwd;
	}

	public String getPassWord() {
		return this.mPassword;
	}

	public void setLoginType(int type) {
		this.mLoginType = type;
	}

	public int getLoginType() {
		return this.mLoginType;
	}

	/**
	 * @return the isLoginWithId
	 */
	public boolean isLoginWithId() {
		return isLoginWithId;
	}

	/**
	 * @return the isLogoff
	 */
	public boolean isLogoff() {
		return isLogoff;
	}

	/**
	 * @param isLogoff
	 *            the isLogoff to set
	 */
	public void setLogoff(boolean isLogoff) {
		this.isLogoff = isLogoff;
	}
	
	/**
	 * @param token the token to set
	 */
	public void setToken(String token) {
		this.token = token;
	}
	
	/**
	 * @return the token
	 */
	public String getToken() {
		return token;
	}

}
